package com.qili.mapper.supervisor;

import com.qili.base.mapper.BaseMapper;
import com.qili.entity.supervisor.ProjectContract;
import com.qili.entity.supervisor.dto.ProjectContractDTO;

import java.util.List;

/**
 * Created by lenovo on 2020/11/4.
 */
public interface ProjectContractMapper extends BaseMapper<ProjectContract,String> {

    int insert(ProjectContract projectContract);

    List<ProjectContract> selectPackageWithUnit(ProjectContract projectContract);

    /**
     * @Author:Zhangshuo
     * @Description:根据项目ID删除
     * @param ids
     * @Date:20:33 2020-12-11
     */
    int deleteByProjectIds(String[] ids);

    /**
    * @Description:
    * @Author:Zhangshuo
    * @param projectContract
    * @Date:15:03 2020-12-19
    */
    List<ProjectContract> getProjectPackageByRole(ProjectContract projectContract);
    /**
    * @Author:zhaoyongke
    * @Description:
    * @param projectContract
    * @Date:13:13 2021/2/24
    */
    List<ProjectContract> selectPackge(ProjectContractDTO projectContract);

    int selectOrderMax(String id);
}
